package cn.gson.work.model.service;

import cn.gson.work.model.mapper.VolumelibraryMapper;
import cn.gson.work.model.pojos.Volumelibrary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class VolumelibraryService {
    @Autowired
    VolumelibraryMapper vlm;
    public List<Volumelibrary> findVolume(String search){
        return vlm.findVolume(search);
    }
    public void addVolume(Volumelibrary vl){
        vlm.addVolume(vl);
    }
    public List<Volumelibrary> findVolumeAll(){
        return vlm.findVolumeAll();
    }
}
